<body>
    <form id="my-form">
        <div id="tools" class="datagrid-toolbar">
            <a id="closeBtn" name="backOk" class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-close"
                plain="true"><span class="l-btn-left"><span
                        class="l-btn-text icon-close l-btn-icon-left">关闭</span></span></a>
        </div>
        <p id="errorMsg" style="color:red;margin-top:5px;"></p>
        <table class="formTable">
            <tbody>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        申请人：
                    </td>
                    <td>
                        <input type="text" name="applyUserName" id="applyUserName"
                            class="easyui-validatebox validatebox-text" readonly="">
                        <input type="hidden" name="applyUserId" id="applyUserId" value="982">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        所属部门：
                    </td>
                    <td>
                        <input type="text" name="applyDeptName" id="applyDeptName"
                            class="easyui-validatebox validatebox-text" readonly="">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        申请时间：
                    </td>
                    <td>
                        <input type="text" name="commitDate" id="commitDate" class="easyui-validatebox validatebox-text"
                            readonly="">
                    </td>
                </tr>
                <tr id="htlxTr" style="display: none;">
                    <td class="tdc1">
                        合同类型：
                    </td>
                    <td>
                        <input type="text" name="contractTypeId" id="contractTypeId"
                            class="easyui-validatebox validatebox-text" readonly="">
                    </td>
                </tr>
                <tr id="yuji">
                    <td class="tdc1" style="width:150px;">
                        预计归还时间：
                    </td>
                    <td>
                        <input type="text" name="estimatedTime" id="estimatedTime"
                            class="easyui-validatebox validatebox-text" readonly="">
                    </td>
                </tr>
                <tr id="jzzy">
                    <td class="tdc1" style="width:150px;">
                        归还时间：
                    </td>
                    <td>
                        <input type="text" name="returnDate" id="returnDate" class="easyui-validatebox validatebox-text"
                            readonly="">
                    </td>
                </tr>
            </tbody>
        </table>
        <br>
        <table class="formTable" id="htlxtable" style="display:none">
            <tbody>
                <tr>
                    <td colspan="4">合同履行节点</td>
                </tr>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        合同名称：
                    </td>
                    <td>
                        <input type="text" name="contractName" id="contractName"
                            class="easyui-validatebox validatebox-text" readonly="">
                    </td>
                    <td class="tdc1">
                        合同金额：
                    </td>
                    <td>
                        <input type="text" id="contractMoney" readonly="" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" numberboxname="contractMoney"><input
                            type="hidden" name="contractMoney" value="">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        甲方：
                    </td>
                    <td>
                        <input type="text" name="partyA" id="partyA" class="easyui-validatebox validatebox-text"
                            readonly="">
                    </td>
                    <td class="tdc1">
                        乙方：
                    </td>
                    <td>
                        <input type="text" name="partyB" id="partyB" class="easyui-validatebox validatebox-text"
                            readonly="">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        起始时间：
                    </td>
                    <td>
                        <input type="text" name="contractStartDate" id="contractStartDate" readonly="readonly"
                            class="easyui-validatebox validatebox-text">
                    </td>
                    <td class="tdc1">
                        结束时间：
                    </td>
                    <td>
                        <input type="text" name="contractEndDate" id="contractEndDate" readonly="readonly"
                            class="easyui-validatebox validatebox-text">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        结算方式：
                    </td>
                    <td colspan="3">
                        <select name="hxsxjdType" id="hxsxjdType" disabled="disabled">
                            <option value="">请选择</option>
                            <option value="1">一次性结算</option>
                            <option value="2">分阶段完成</option>
                        </select>
                    </td>
                </tr>
                <tr id="tr1" style="display:none">
                    <td class="tdc1">
                        阶段类型：
                    </td>
                    <td colspan="3">
                        <select name="jdType" id="jdType" disabled="disabled">
                            <option value="">请选择</option>
                            <option value="1">协议内容固定类合同</option>
                            <option value="2">协议内容灵活约定类合同</option>
                        </select>
                    </td>
                </tr>
                <tr id="tr2" style="display:none">
                    <td class="tdc1">固定合同支付方式：</td>
                    <td colspan="3">
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="4">一次性付清
                        <input type="text" name="payDate" id="payDate" class="easyui-validatebox validatebox-text"
                            style="width:140px;" readonly="">
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="1">半年
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="2">季度
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="3">月
                    </td>
                </tr>
                <tr id="tr3" style="display:none">
                    <td class="tdc1">手动设置履行节点
                        <input type="hidden" name="count" id="count" value="">
                        <input type="hidden" name="payDateStr" id="payDateStr" value="">
                        <input type="hidden" name="payMoneyStr" id="payMoneyStr" value="">
                    </td>
                    <td colspan="3">

                    </td>
                </tr>
                <tr id="tr3_1" style="display:none">
                    <td class="tdc1">
                        第1期支付时间：
                    </td>
                    <td>
                        <input type="text" name="payDate_1" id="payDate_1" readonly="readonly"
                            class="easyui-validatebox validatebox-text">
                    </td>
                    <td class="tdc1">
                        第1期支付金额：
                    </td>
                    <td>
                        <input type="text" id="payMoney_1" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" readonly=""
                            numberboxname="payMoney_1"><input type="hidden" name="payMoney_1" value="">
                    </td>
                </tr>
                <tr id="tr3_2" style="display:none">
                    <td class="tdc1">
                        第2期支付时间：
                    </td>
                    <td>
                        <input type="text" name="payDate_2" id="payDate_2" readonly="readonly"
                            class="easyui-validatebox validatebox-text">
                    </td>
                    <td class="tdc1">
                        第2期支付金额：
                    </td>
                    <td>
                        <input type="text" id="payMoney_2" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" readonly=""
                            numberboxname="payMoney_2"><input type="hidden" name="payMoney_2" value="">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
    <div style="margin-left:10px;">
        <div id="showFiles">
        </div>
    </div>
    <div style="margin-left:10px;display:none" id="uploaddzwd">
        <br>
        <div>用印完成后需把合同盖章原件上传电子文档：</div>
        <div id="showFiles1">
        </div>
    </div>
    <br>
    <div id="search" class="datagrid-toolbar" style="display:none;">
        <input type="hidden" name="bid" id="bid" value="49715">
    </div>
    <div class="panel datagrid" style="width: auto;">
        <div class="datagrid-wrap panel-body panel-body-noheader" title="" style="width: 739px; height: auto;">
            <div class="datagrid-view" style="width: 739px; height: 62px;">
                <style type="text/css">
                    div.datagrid-cell-c1-deptNames {
                        width: 192px;
                    }

                    div.datagrid-cell-c1-dicNames {
                        width: 122px;
                    }

                    div.datagrid-cell-c1-reasons {
                        width: 292px;
                    }
                </style>
                <div class="datagrid-view1" style="width: 41px;">
                    <div class="datagrid-header" style="width: 41px; height: 24px;">
                        <div class="datagrid-header-inner" style="display: block;">
                            <table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0"
                                style="height: 25px;">
                                <tbody>
                                    <tr class="datagrid-header-row">
                                        <td rowspan="0">
                                            <div class="datagrid-header-rownumber"></div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-body" style="width: 41px; height: 37px;">
                        <div class="datagrid-body-inner">
                            <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0"
                                style="table-layout: auto;">
                                <tbody>
                                    <tr id="datagrid-row-r1-1-0" datagrid-row-index="0" class="datagrid-row"
                                        style="height: 37px;">
                                        <td class="datagrid-td-rownumber">
                                            <div class="datagrid-cell-rownumber">1</div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-footer" style="width: 41px;">
                        <div class="datagrid-footer-inner" style="display: none;"></div>
                    </div>
                </div>
                <div class="datagrid-view2" style="width: 698px;">
                    <div class="datagrid-header" style="width: 698px; height: 24px;">
                        <div class="datagrid-header-inner" style="display: block;">
                            <table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0"
                                style="height: 25px;">
                                <tbody>
                                    <tr class="datagrid-header-row">
                                        <td field="id">
                                            <div class="datagrid-header-check"><input type="checkbox"></div>
                                        </td>
                                        <td field="deptNames">
                                            <div class="datagrid-cell" style="width: 198px;"><span>印章所属部门</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                        <td field="dicNames">
                                            <div class="datagrid-cell" style="width: 125px;"><span>印章类型</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                        <td field="reasons">
                                            <div class="datagrid-cell" style="width: 303px;"><span>申请事由</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-body" style="width: 698px; height: 37px;">
                        <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0"
                            style="table-layout: auto;">
                            <tbody>
                                <tr id="datagrid-row-r1-2-0" datagrid-row-index="0" class="datagrid-row"
                                    style="height: 37px;">
                                    <td field="id">
                                        <div style="" class="datagrid-cell-check "><input type="checkbox" name="id"
                                                value="50607"></div>
                                    </td>
                                    <td field="deptNames">
                                        <div style="white-space:normal;height:auto;"
                                            class="datagrid-cell datagrid-cell-c1-deptNames">
                                            上海启迪创业孵化器有限公司,上海新智启迪之星创业孵化器管理有限公司 </div>
                                    </td>
                                    <td field="dicNames">
                                        <div style="white-space:normal;height:auto;"
                                            class="datagrid-cell datagrid-cell-c1-dicNames">公章</div>
                                    </td>
                                    <td field="reasons">
                                        <div style="white-space:normal;height:auto;"
                                            class="datagrid-cell datagrid-cell-c1-reasons">上海：企业申请创业启动补贴等项目，需孵化器盖章
                                            新智：迁出，退款手续办理，需要公章</div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="datagrid-footer" style="width: 698px;">
                        <div class="datagrid-footer-inner" style="display: none;"></div>
                    </div>
                </div>
                <table id="list_data" style="display: none;"></table>
            </div>
            <div class="datagrid-pager pagination">
                <table cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                        <tr>
                            <td><select class="pagination-page-list">
                                    <option>10</option>
                                    <option>20</option>
                                    <option>30</option>
                                    <option>40</option>
                                    <option>50</option>
                                </select></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-first">&nbsp;</span></span></span></a>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-prev">&nbsp;</span></span></span></a></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><span style="padding-left:6px;">第</span></td>
                            <td><input class="pagination-num" type="text" value="1" size="2"></td>
                            <td><span style="padding-right:6px;">共1页</span></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-next">&nbsp;</span></span></span></a></td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-last">&nbsp;</span></span></span></a></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-load">&nbsp;</span></span></span></a></td>
                        </tr>
                    </tbody>
                </table>
                <div class="pagination-info">显示1到1,共1记录</div>
                <div style="clear:both;"></div>
            </div>
        </div>
    </div><br>
    <div style="margin-left:10px;">
        <div id="showRecords">
            <div style="margin-top:8px;margin-bottom:8px;">审核人：韩威<span style="margin-left:15px;">审核时间：2025-11-03
                    09:52:48</span><span style="margin-left:15px;">审核选项：同意</span><span
                    style="margin-left:15px;">审核意见：同意</span></div>
            <div style="margin-top:8px;margin-bottom:8px;">审核人：沈全洪<span style="margin-left:15px;">审核时间：2025-11-04
                    09:41:24</span><span style="margin-left:15px;">审核选项：同意</span><span
                    style="margin-left:15px;">审核意见：同意</span></div>
            <div style="margin-top:8px;margin-bottom:8px;">审核人：王维<span style="margin-left:15px;">审核时间：2025-11-03
                    09:16:13</span><span style="margin-left:15px;">审核选项：同意</span><span
                    style="margin-left:15px;">审核意见：同意</span></div>
            <div style="margin-top:8px;margin-bottom:8px;">复核人：郜燕<span style="margin-left:15px;">尚未复核</span></div>
        </div>
    </div>


    <script>

        function checkFormMe(form) {
            return $('#my-form').form('validate');
        }
        function changeNext(value) {
            if (value == "2") {
                $("#tr1").show();
            } else {
                $("#tr1").hide();
                $("#jdType").val("");
            }
        }

        function changeSecond(value) {
            var count = $("#count").val();
            if (value == "1") {
                $("#tr3").hide();
                for (var i = 1; i <= count; i++) {
                    $("#payDate_" + i).val("");
                    $("#payMoney_" + i).val("");
                    $("#tr3_" + i).hide();
                }
                $("#tr2").show();
            } else {
                $("#tr2").hide();
                $("input:radio[name='payType']").attr("checked", false);
                $("#payDate").val("");
                $("#tr3").show();
                for (var i = 1; i <= count; i++) {
                    $("#tr3_" + i).show();
                }
            }
        }

        var type = $.getUrlParam("type");
        $("#type").val(type);
        var status = $.getUrlParam("status");
        if (type == 1) {
            document.getElementById("jzzy").style.display = "";
            document.getElementById("htlxTr").style.display = "none";
            document.getElementById("yuji").style.display = "";

        } else {
            document.getElementById("jzzy").style.display = "none";
            document.getElementById("htlxTr").style.display = "";
            document.getElementById("yuji").style.display = "none";
            if (status == 2) {
                document.getElementById("uploaddzwd").style.display = "";
            }
        }
        var p_id = $.getUrlParam("id");

        var objectId = new Date().getTime();

        var process_id = $.getUrlParam("processid");
        if (process_id != null) {
            $.ajax({
                type: "GET",
                url: contextPath + "manager/approvalprocess/getBeanIdByProcessId/" + process_id + "/" + type,
                data: null,
                dataType: "json",
                success: function (data) {
                    if (data && data.handleMsg.status == 1) {
                        p_id = data.id;
                        if (p_id != null) {
                            objectId = p_id;
                            $("#bid").val(p_id);
                        }
                        $("#objectId").val(objectId);

                        loadBaseModel(p_id);
                        loadDetails(p_id, type);
                        loadRecord(process_id);
                    }
                },
                error: function (response) {
                    $.messager.alert("提示", "出错了，请联系管理员!", 'error', function (rt) {
                        $.messager.alert("提示", response.responseText, 'error');
                    });
                }

            });
        } else {
            if (p_id != null) {
                objectId = p_id;
                $("#bid").val(p_id);
            }
            $("#objectId").val(objectId);
            loadBaseModel(p_id);
            loadDetails(p_id, type);
            loadRecord(process_id);
        }

        function loadBaseModel(p_id) {
            var BaseModel = Backbone.Model.extend({ urlRoot: contextPath + 'manager/borrowSeal' });
            var baseModel;

            if (p_id == null) {
                baseModel = new BaseModel();
            } else {
                baseModel = new BaseModel({ id: p_id, i: new Date().getTime() });
            }
            var baseView = new BaseView({ el: $("#my-form"), model: baseModel });
            if (p_id != null) {
                baseView.doLoad(loadMe);
            }
        }

        function loadMe(model, response, options) {
            if (model.get("approvalProcess")) {
                $("#applyUserName").val(model.get("approvalProcess").applyUserName);
                $("#applyUserId").val(model.get("approvalProcess").applyUserId);
                $("#applyDeptName").val(model.get("approvalProcess").applyDeptName);
                $("#applyDeptId").val(model.get("approvalProcess").applyDeptId);
                $("#type").val(model.get("approvalProcess").type);
                $("#commitDate").val(model.get("approvalProcess").commitDate);
            }
            getAffixs();
            getAffixs1();
            if (model.get("contractType")) {
                $("#contractTypeId").val(model.get("contractType").name)
            }
            if (type == 0) {
                var contractTypeId = response.contractType.id;
                if (contractTypeId != "" && contractTypeId != "177" && contractTypeId != "181" && contractTypeId != "184" && contractTypeId != "187") {
                    $("#contractStartDate").val(model.get("contractStartDate").substring(0, 10));
                    $("#contractEndDate").val(model.get("contractEndDate").substring(0, 10));
                    if (model.get("payDate") != null) {
                        $("#payDate").val(model.get("payDate").substring(0, 10));
                    }
                    $("#htlxtable").show();
                    var hxsxjdType = response.hxsxjdType;
                    changeNext(hxsxjdType);
                    var jdType = response.jdType;
                    if (jdType == "1") {
                        changeSecond(jdType);
                        $("#count").val("2");
                    } else {
                        $.ajax({
                            type: "POST",
                            url: contextPath + "manager/borrowSeal/nodeList/" + model.get("id"),
                            data: null,
                            dataType: "json",
                            success: function (data) {
                                if (data && data.length > 0) {
                                    $("#count").val(data.length);
                                    changeSecond(jdType);
                                    for (var j = 3; j <= data.length; j++) {
                                        var trHtml = "<tr id=\"tr3_" + j + "\">";
                                        trHtml += "<td class=\"tdc1\">第" + j + "期支付时间：</td>";
                                        trHtml += "<td><input type=\"text\" name=\"payDate_" + j + "\" id=\"payDate_" + j + "\" readonly=\"readonly\"";
                                        trHtml += "  class=\"easyui-validatebox\" readonly\"/></td>";
                                        trHtml += "<td class=\"tdc1\">第" + j + "期支付金额：</td>";
                                        trHtml += "<td><input type=\"text\" name=\"payMoney_" + j + "\" id=\"payMoney_" + j + "\" readonly class=\"easyui-numberbox\"/></td>";
                                        trHtml += "</tr>";
                                        $("#htlxtable").append(trHtml);
                                    }
                                    var payDateStr = "";
                                    var payMoneyStr = "";
                                    for (var i = 0; i < data.length; i++) {
                                        $("#payDate_" + (i + 1)).val(data[i].payDate.substring(0, 10));
                                        $("#payMoney_" + (i + 1)).val(data[i].payMoney);
                                        payDateStr += data[i].payDate.substring(0, 10) + ";";
                                        payMoneyStr += data[i].payMoney + ";";
                                    }
                                    $("#payDateStr").val(payDateStr);
                                    $("#payMoneyStr").val(payMoneyStr);
                                } else {
                                    $("#count").val("2");
                                }
                            },
                            error: function (response) {
                                $.messager.alert("提示", "出错了，请联系管理员!", 'error', function (rt) {
                                    $.messager.alert("提示", response.responseText, 'error');
                                });
                            }

                        });
                    }
                }
            }

        }

        var max_uplaod = new Max_SwfUpload();

        function getAffixs() {
            $.ajax({
                type: "POST",
                url: contextPath + "affixs",
                data: { "objectType": 1, objectId: objectId },
                dataType: "json",
                success: function (data) {
                    if (data && data.length > 0) {
                        showAffixs(data);
                    }
                },
                error: function (response) {
                    $.messager.alert("提示", "出错了，请联系管理员!", 'error', function (rt) {
                        $.messager.alert("提示", response.responseText, 'error');
                    });
                }

            });
        }

        function getAffixs1() {
            $.ajax({
                type: "POST",
                url: contextPath + "affixs",
                data: { "objectType": 101, objectId: objectId },
                dataType: "json",
                success: function (data) {
                    if (data && data.length > 0) {
                        showAffixs1(data);
                    }
                },
                error: function (response) {
                    $.messager.alert("提示", "出错了，请联系管理员!", 'error', function (rt) {
                        $.messager.alert("提示", response.responseText, 'error');
                    });
                }

            });
        }

        function showAffixs(data) {
            var fileHtml = "";
            for (var i = 0; i < data.length; i++) {
                fileHtml += "<div style=\"margin-top:8px;margin-bottom:8px;\">" + data[i].name;
                fileHtml += "<a style=\"margin-left:10px\" href=\"javascript:\" onclick=\"downfile(" + data[i].id + ")\">下载</a></div>";
            }
            $("#showFiles").html(fileHtml);
        }

        function showAffixs1(data) {
            var fileHtml = "";
            for (var i = 0; i < data.length; i++) {
                fileHtml += "<div style=\"margin-top:8px;margin-bottom:8px;\">" + data[i].name;
                fileHtml += "<a style=\"margin-left:10px\" href=\"javascript:\" onclick=\"downfile(" + data[i].id + ")\">下载</a></div>";
            }
            $("#showFiles1").html(fileHtml);
        }

        function downfile(affixId) {
            window.location.href = contextPath + 'affix/' + affixId + '/download';
        }

        function loadDetails(p_id, type) {
            $('#list_data').datagrid({
                url: contextPath + "manager/borrowSealDetails?i=" + new Date().getTime(),
                fitColumns: true,
                singleSelect: false,
                rownumbers: true,
                pagination: true,
                nowrap: false,
                sortName: 'id',
                sortOrder: 'desc',
                method: 'POST',
                nowrap: false,
                onRowContextMenu: onRowContextMenu,//右键菜单
                queryParams: { "bid": p_id },
                columns: [[
                    { field: 'id', checkbox: true },
                    { field: 'deptNames', title: '印章所属部门', width: 200 },
                    { field: 'dicNames', title: '印章类型', width: 130 },
                    { field: 'reasons', title: '申请事由', width: 300 }
                ]]
            });
        }

        //查询
        function query() {
            searchGo(contextPath + "manager/borrowSealDetails?i=" + new Date().getTime(), "#search", "#list_data");
        }

        ////加载领导审核意见
        function loadRecord(process_id) {
            $.ajax({
                type: "POST",
                url: contextPath + "manager/approvalRecords/listApprovalRecord/" + process_id,
                data: {},
                dataType: "json",
                success: function (data) {
                    if (data) {
                        var rHtml = "";
                        var msg = "审核"
                        for (var i = 0; i < data.length; i++) {
                            if (data[i].userType == 5) {
                                msg = "复核";
                            } else {
                                msg = "审核"
                            }
                            rHtml += "<div style=\"margin-top:8px;margin-bottom:8px;\">" + msg + "人：" + data[i].approvalUser.truename + "";
                            if (data[i].approvalDate == null) {
                                rHtml += "<span style=\"margin-left:15px;\">尚未" + msg + "</span>";
                            } else {
                                rHtml += "<span style=\"margin-left:15px;\">" + msg + "时间：" + data[i].approvalDate + "</span>";
                                if (data[i].approvalType == 1) {
                                    rHtml += "<span style=\"margin-left:15px;\">" + msg + "选项：同意</span>";
                                } else {
                                    rHtml += "<span style=\"margin-left:15px;\">" + msg + "选项：不同意</span>";
                                }
                                rHtml += "<span style=\"margin-left:15px;\">" + msg + "意见：" + data[i].opinion + "</span>";
                            }
                            rHtml += "</div>";
                        }
                        $("#showRecords").html(rHtml);
                    }
                },
                error: function (response) {
                    $.messager.alert("提示", "出错了，请联系管理员!", 'error', function (rt) {
                        $.messager.alert("提示", response.responseText, 'error');
                    });
                }
            });
        }

        var userType = $.getUrlParam("userType");

    </script>
    <div id="loading1"
        style="position: absolute; left: 0px; top: 0px; width: 100%; height: 703px; background: rgb(232, 232, 232); opacity: 0.5; z-index: 10000; display: none;">
    </div>
    <div id="loading2" class="panel-loading"
        style="position: fixed; top: 38%; left: 41%; border: 2px solid rgb(149, 184, 231); width: 160px; font-size: 14px; z-index: 10001; background: url(&quot;/system/jquery/themes/themes1/images/loading-1.gif&quot;) 10px 8px no-repeat rgb(255, 255, 255); display: none;">
        正在处理，请稍等...</div>
</body>